package com.itheima.service.impl;

import com.itheima.domain.Role;
import com.itheima.mapper.RoleMapper;
import com.itheima.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 角色信息Service业务层处理
 * @Author: hsp
 * @Date: 2022/12/3-12-03-14:32
 * @Description: com.itheima.service.impl
 * @version: 1.0.0
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    /**
     * 查询角色信息列表
     * @return
     */
    @Override
    public List<Role> findAll() {
        return roleMapper.selectList(null);
    }

}
